<ion-header>
    <ion-toolbar class="toolbar-head">
        <ion-buttons slot="start">
            <ion-back-button defaultHref=""></ion-back-button>
        </ion-buttons>
        <ion-title>customer service</ion-title>
    </ion-toolbar>
</ion-header>

<ion-content style="--background: #999999;">
    <div class="list" *ngFor="let item of list">
        <div *ngIf="item.type=='chat'" lines='none' class="list-item-1">
            <img  class="list-item-1-image" src="../../../../assets/img/pic.png" alt="">
            <div class="list-item-1-image-label" *ngIf="item.typeMsg!='img'">
                <label style="word-break: break-word">{{item.sourceMsg}}</label>
            </div>
            <img ionImgViewer  scheme="dark"  cssClass='ion-img-viewer-img' *ngIf="item.typeMsg=='img'" class="list-item-1-content-image" src="{{item.url}}" alt="">
        </div>
        <div *ngIf="item.type=='reply'" lines='none' class="list-item-1" style="text-align: right;">
            <div class="list-item-1-image-label-right" *ngIf="item.typeMsg!='img'">
                <label style=" word-break: break-word;" >{{item.sourceMsg}}</label>
            </div>
            <img ionImgViewer  scheme="dark"  cssClass='ion-img-viewer-img' *ngIf="item.typeMsg=='img'" class="list-item-1-content-image-right" src="{{item.url}}" alt="">
            <img class="list-item-1-image-right" src="{{imagePhoto}}" alt="">

        </div>

    </div>
</ion-content>
<ion-buttons style="height: 50px;">
    <div class="Invitation loginInput" style="    width: 100%;">
        <div class="left">
            <input type="file" id="image" accept="image/*" (change)='addMsg($event)' [(ngModel)]="imageName"
                style="position: absolute;    width: 40px; height: 40px; opacity: 0; ">
            <img class="img_one" src="../../../../assets/img/jia-1.png">
        </div>
        <ion-input (ionFocus)='focus()'  (ionChange)='focus()' class="input" type="text" [(ngModel)]="sendMsg" placeholder="Please enter your message"></ion-input>
        <div class="right" (click)="onSend()">
            <img class="img_two" src="../../../../assets/img/feiji.png" alt="">
        </div>
    </div>
</ion-buttons>